home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
clesson
/
c.dir
/
00023_Script_23
< prev
next >
Wrap
Text File
|
1995-04-05
|
2KB
|
87 lines
on buttonRoll
puppetSprite 6,TRUE
puppetSprite 7,TRUE
puppetSprite 8,TRUE
puppetSprite 9,TRUE
puppetSprite 10,TRUE
puppetSprite 11,TRUE
puppetSprite 13,TRUE
puppetSprite 14,TRUE
puppetSprite 15,TRUE
puppetSprite 16,TRUE
puppetSprite 17,TRUE
set the immediate of sprite 6 to TRUE
set the immediate of sprite 7 to TRUE
set the immediate of sprite 8 to TRUE
set the immediate of sprite 9 to TRUE
set the immediate of sprite 10 to TRUE
set the immediate of sprite 11 to TRUE
set the immediate of sprite 13 to TRUE
set the immediate of sprite 14 to TRUE
set the immediate of sprite 15 to TRUE
set the immediate of sprite 16 to TRUE
set the immediate of sprite 17 to TRUE
if rollover(6) = TRUE then
set the castNum of sprite 13 to the number of cast "paper3.pcx"
else
set the castNum of sprite 13 to the number of cast "blank1.pcx"
end if
if rollover(7) = TRUE then
set the castNum of sprite 14 to the number of cast "paper4.pcx"
else
set the castNum of sprite 14 to the number of cast "blank2.pcx"
end if
if rollover(8) = TRUE then
set the castNum of sprite 15 to the number of cast "paper5.pcx"
else
set the castNum of sprite 15 to the number of cast "blank3.pcx"
end if
if rollover(9) = TRUE then
set the castNum of sprite 16 to the number of cast "paper6.pcx"
else
set the castNum of sprite 16 to the number of cast "blank4.pcx"
end if
if rollover(10) = TRUE then
set the castNum of sprite 17 to the number of cast "paper7.pcx"
else
set the castNum of sprite 17 to the number of cast "blank5.pcx"
end if
if rollover(11) = TRUE then
set the castNum of sprite 11 to the number of cast "Amptr.pct"
else
set the castNum of sprite 11 to the number of cast "amph.pct"
end if
go to the frame
end buttonRoll
on button downButton, upButton, whichMovie
--puppetSound "mdown.wav"
repeat while the mouseDown
if rollover(the clickOn)= TRUE then
set the castNum of sprite (the clickOn) to the number of cast (downButton)
updateStage
-- else
-- set the castNum of sprite (the clickOn) to the number of cast (upButton)
-- updateStage
-- exit
end if
end repeat
-- puppetSound "mup.wav"
-- go the frame (whichFrame)
go movie (whichMovie)
end button